const express = require('express')
const router = express.Router()
const user = require('../../controller/user.controller')

/**
 * @swagger
 * /login:
 *    post:
 *      tags:
 *      - 用户
 *      summary: 登录
 *      produces:
 *      - application/json
 *      parameters:
 *      - name: user_name
 *        in: query
 *        description: 用户名
 *        required: true
 *        type: string
 *      - name: user_pwd
 *        in: query
 *        description: 密码
 *        required: true
 *        type: string
 */
router.post('/login', user.Login)

module.exports = router
